<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'list.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<script type="text/javascript" src="js/jquery-1.6.2.js"></script>
	<script type="text/javascript">
		$(function(){
			
		});
	</script>
  </head>
  
  <body>
  	<form action="person/updatePerson.do" method="post">
  		<input type="hidden" name="personId" value="${person.personId }">
    	<table>
    		
    		<tr><td>姓名：<input type="text" name="personName" value="${person.personName }"></td></tr>
    		<tr><td>生日：<input type="text" name="birthday" value="<fmt:formatDate value="${person.birthday }" pattern="yyyy-MM-dd"/>"></td></tr>
    			<tr><td>地址：<input type="text" name="address" value="${person.address }"></td></tr>
    			<tr><td>性别：
    				<select name="gender">
    					<option value="2" selected>--请选择--</option>
    					<option value="0" <c:if test="${person.gender == '0' }">selected</c:if> >男</option>
    					<option value="1" <c:if test="${person.gender == '1' }">selected</c:if>>女</option>
    				</select>
    				</td>
    			</tr>
    			
    			<tr><td><input type="submit" value="修改" ></td></tr>
    		
    	</table>
    </form>
    
  </body>
</html>
